/*
 * Powered By [fdlm]
 * Web Site: http://www.fdlm.cn
 * Since 2014 - 2015
 */

package com.sjyy.accountdoctor.dao;

import java.util.*;

import com.sjyy.accountdoctor.model.*;
import com.sjyy.accountdoctor.service.*;
import com.sjyy.accountdoctor.vo.query.*;

import javacommon.base.*;
import javacommon.util.*;
import javacommon.page.Page;

/**
 * @author cty email:caotianye@fdlm.cn
 * @version 1.0
 * @since 1.0
 */


import org.springframework.stereotype.Repository;


@Repository
public class AccountDoctorDao extends BaseIbatis3Dao<AccountDoctor,AccountDoctorQuery,java.lang.Integer>{
	
	@Override
	public String getIbatisMapperNamesapce() {
		return "AccountDoctor";
	}
	
	public void saveOrUpdate(AccountDoctor entity) {
		if(entity.getDoctorId() == null) 
			save(entity);
		else 
			update(entity);
	}
	
	public Page findPage(AccountDoctorQuery query) {
		return pageQuery("AccountDoctor.findPage",query);
	}
	

}
